<?php 
// Lay cac thong so cau hinh chung
include "../../app_global.php";
// Lay cac hang so dung chung
include "../../const.php";
// Ket noi vao Database
include "../../connect.php";
// Ket noi vao Database bang ADO
include "../../connect_ado.php";
// Ham thuc hien lay ten file va hien thi noi dung
include "../../isa-lib/isa-function/isa_public_function.php";
include "handler_function.php";
include_once("../../isa-lib/isa-function/class_xslt.php");//Khai bao su dung cac ham dung chung 

// Kiem tra NSD da login hay qua timeout chua
include "../../test_login.php";
// Lay cac ham cua ung dung nay
include "../../onegate_function.php";
// Khoi tao cac bien session de luu quyen thuc hien tren cac modul, function cua NSD hien thoi
include "../../init_session.php";
// Lay cac thong so cau hinh rieng cho chuc nang nay
include "app_local.php";
// Lay cac hang so cua chuc nang nay
include "const.php";
// Kiem tra che do hien thi trang
if (!isset($_REQUEST['modal_dialog_mode'])) {
	include "../../dsp_header.php";
}else{
	include "../../dsp_modal_dialog_header.php";
}?>
<script src="../../isa-lib/isa-js/isa_util.js"></script>
<script src="js_recordtype.js"></script>
<script src="js_enduser.js"></script><?php
//echo $fuseaction.'<br>';
switch($fuseaction){
 	 case "DISPLAY_SINGLE_RECORDTYPE";
	 	include "qry_all_cate.php";
		include "qry_single_recordtype.php";
		include "dsp_single_recordtype_vunh.php";
		break;
	 case "DISPLAY_ALL_RECORDTYPE";
		include "qry_all_cate.php";
		include "qry_all_recordtype.php";
		include "dsp_all_recordtype.php";
		break;
	 case "UPDATE_RECORDTYPE";
		include "act_update_recordtype_vunh.php";
		break;
	 case "DELETE_RECORDTYPE";
		include "act_delete_recordtype.php";
		break;
	case "DISPLAY_ALL_STAFF_BY_UNIT";
		include "dsp_all_staff_by_unit.php";
		break;
	//nieuvv--121108--danh sach can bo thuoc phong ban phoi hop thu ly
	case "DISPLAY_ALL_STAFF_CO_BY_AGENCY";
		include "dsp_all_staff_by_agency_nieuvv.php";
		break;
	//the-end-nieuvv-121108--
	case "DISPLAY_ALL_STAFF_BY_AGENCY";
		include "dsp_all_staff_by_agency.php";
		break; 
	case "DISPLAY_ALL_UNIT"; 
		include "dsp_all_unit.php"; 
		break;
	case "DISPLAY_ALL_HANDLE_LEADER"; 
		include "dsp_all_handle_leader.php"; 
		break; 
	case "DISPLAY_ALL_APPROVE_LEADER"; 
		include "dsp_all_approve_leader.php"; 
		break; 		 		
	default: 
		include "qry_all_cate.php";
		include "qry_all_recordtype.php";
		include "dsp_all_recordtype.php";
		break;
}
include "../../disconnect.php";
if (!isset($_REQUEST['modal_dialog_mode'])) {
	include "../../dsp_footer.php";
}else{
	include "../../dsp_modal_dialog_footer.php";
}?>